package userinterface;

import java.net.MalformedURLException;
import java.net.URL;
import javax.swing.JFrame;

public class PopupWindow extends JFrame {
	private static final long serialVersionUID = -5098999590428332327L;
	protected String basePath = null;

	protected URL getBaseURL(String path) {
		String fullPath = basePath.substring(0, basePath.length() - 1) + path;
		URL url = null;
		try {
			url = new URL(fullPath);
		} catch (MalformedURLException ex) {
			ex.printStackTrace();
			System.out.println("Error al cargar la imagen: " + ex.getStackTrace());
		}
		return url;
	}
}
